/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.image;

import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

/**
 * 图片资源管理Entity
 * @author ZC
 * @version 2017-04-20
 */
@XmlType(name="imagecfg")
public class EleSourceImageGroup extends DataEntity<EleSourceImageGroup> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String autoPlay;		// 自动播放
	private String transitionEffect;		// 过渡效果
	private String interval;		// 播放的间隔时间(毫秒)
	private String toFloor;		// 对应楼层
	private List<EleSourceImage> eleSourceImageList = Lists.newArrayList();		// 子表列表
	
	public EleSourceImageGroup() {
		super();
	}

	public EleSourceImageGroup(String id){
		super(id);
	}
	@XmlTransient
	@Length(min=0, max=50, message="视频名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@XmlElement(name = "auto_play")
	public String getAutoPlay() {
		return autoPlay;
	}

	public void setAutoPlay(String autoPlay) {
		this.autoPlay = autoPlay;
	}
	@XmlElement(name = "transition_effect")
	@Length(min=0, max=255, message="过渡效果长度必须介于 0 和 255 之间")
	public String getTransitionEffect() {
		return transitionEffect;
	}

	public void setTransitionEffect(String transitionEffect) {
		this.transitionEffect = transitionEffect;
	}
	
	@XmlElement(name = "interval")
	@Length(min=0, max=11, message="播放的间隔时间(毫秒)长度必须介于 0 和 11 之间")
	public String getInterval() {
		return interval;
	}

	public void setInterval(String interval) {
		this.interval = interval;
	}
	
	@XmlElement(name = "to_floor")
	public String getToFloor() {
		return toFloor;
	}

	public void setToFloor(String toFloor) {
		this.toFloor = toFloor;
	}
	
	@XmlElement(name = "image")
	public List<EleSourceImage> getEleSourceImageList() {
		return eleSourceImageList;
	}

	public void setEleSourceImageList(List<EleSourceImage> eleSourceImageList) {
		this.eleSourceImageList = eleSourceImageList;
	}
}